package com.ly.system.service.exam;

import com.ly.system.domain.exam.dto.ExamAddDTO;
import com.ly.system.domain.exam.dto.ExamEditDTO;
import com.ly.system.domain.exam.dto.ExamQueryDTO;
import com.ly.system.domain.exam.dto.ExamQuestionAddDTO;
import com.ly.system.domain.exam.vo.ExamDetialVO;
import com.ly.system.domain.exam.vo.ExamVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IExamService {
    List<ExamVO> list(ExamQueryDTO examDTO);

    String add(ExamAddDTO examAddDTO);

    boolean questionAdd(ExamQuestionAddDTO examQuestionAddDTO);

    int questionDelete(Long examId, Long questionId);

    ExamDetialVO detail(Long examId);

    int edit(ExamEditDTO examEditDTO);

    int delete(Long examId);

    int publish(Long examId);

    int cancelPublish(Long examId);


//    int detail(Long examId);
}
